﻿using System;
using System.Linq;
namespace HitchHikersGuideToTheGalaxy.Models
{
    public interface IFuelRepository
    {
        // Default Add, Delete and save actions
        void Add(Fuel fuel);
        void Delete(Fuel fuel);
        void Save();

        //Querys
        IQueryable<Fuel> FindAllFuels();
        Fuel GetFuel(int id);
        int GetFuelId(String type);

        // Helper functions
        decimal CalculateTourCost(decimal price, decimal distance, decimal usageCombined);
        decimal GetFuelPrice(int? id);
        decimal DivideTourCostAmongPassengers(decimal cost, int passengers);
    }
}
